package com.example.consulconfig;

import com.example.consulconfig.config.DBConfig;
import com.example.consulconfig.config.StudentConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigurationProperties({StudentConfig.class,DBConfig.class})
public class ConsulconfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConsulconfigApplication.class, args);
    }

}

